package a.j;

import a.c.d;
import a.c.e;
import a.c.z;
import a.d.o;
import a.d.t;
import a.d.w;
import a.f.bc;
import a.f.cc;
import a.f.fc;
import a.f.xb;
import a.f.yc;

import java.awt.*;
import java.awt.event.MouseEvent;
import java.util.EventObject;

public class vf
  extends gf
{
  public static final byte m = 1;
  public static final byte G = 2;
  public static final byte H = 0;
  private static final Color I = new Color(51, 51, 51);
  double J;
  double K;
  double L;
  double M;
  hg N;
  private z O;
  private b_ P;
  private byte Q;
  private boolean R = true;
  private yc S;
  private xb T;
  private we U;
  private d_ V;
  private y W;
  private boolean X = true;
  private int Y;
  public static boolean Z;
  
  public vf(df paramdf)
  {
    super(paramdf);
    d(2);
  }
  
  public vf()
  {
    d(2);
  }
  
  public void d(int paramInt)
  {
    this.Y = paramInt;
  }
  
  public int v()
  {
    return this.Y;
  }
  
  protected boolean c(MouseEvent paramMouseEvent)
  {
    if (!ld.E) {}
    return (paramMouseEvent.getModifiers() & v()) != 0;
  }
  
  public y w()
  {
    if (!ld.E) {
      if (this.W == null) {
        this.W = y();
      }
    }
    return this.W;
  }
  
  public void a(y paramy)
  {
    if (!ld.E) {
      if (this.W != null) {
        this.W.g();
      }
    }
    this.W = paramy;
  }
  
  public boolean x()
  {
    return this.X;
  }
  
  public void g(boolean paramBoolean)
  {
    this.X = paramBoolean;
  }
  
  protected y y()
  {
    return new y(this.i);
  }
  
  public boolean z()
  {
    return this.R;
  }
  
  public void h(boolean paramBoolean)
  {
    this.R = paramBoolean;
  }
  
  public void mousePressedLeft(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2)
    {
      if (this.U != null) {
        this.U.a();
      }
      this.U = new we();
      this.J = (this.L = paramDouble1);
      this.K = (this.M = paramDouble2);
    }
    g localg = k();
    hg localhg = this.N;
    byte b = this.Q;
    yc localyc = this.S;
    xb localxb = this.T;
    this.N = null;
    this.O = null;
    if (!bool2) {
      if (this.P != null)
      {
        this.i.b(this.P);
        this.P = null;
      }
    }
    if ((bool2) || (this.V != null))
    {
      this.V.a();
      this.V = null;
    }
    Object localObject2;
    if (!bool2)
    {
      if (localhg != null) {
        w().g();
      }
    }
    else
    {
      localObject1 = localhg.d();
      localhg.e(b);
      if (!bool2) {
        if ((localhg instanceof jg))
        {
          localObject2 = (jg)localhg;
          if (bool2) {
            break label238;
          }
          ((jg)localObject2).a(localyc, localyc.a((o)localObject1, ((jg)localObject2).hb()));
          if (!bool1) {
            break label278;
          }
        }
      }
      label238:
      localObject2 = (ig)localhg;
      tb localtb = ((ig)localObject2).nb();
      ((ig)localObject2).a(localxb, localxb.a((o)localObject1, localtb, localtb.h(), localtb.g()));
    }
    label278:
    Object localObject1 = a(paramDouble1, paramDouble2);
    if (!bool2) {
      if (((sc)localObject1).p() != null)
      {
        a(true);
        if (bool2) {
          break label416;
        }
        localObject2 = ((sc)localObject1).p();
        this.Q = ((jg)localObject2).D();
        this.S = ((jg)localObject2).a();
        a(localg, (jg)localObject2, paramDouble1, paramDouble2);
        this.N = ((hg)localObject2);
        if (!bool1) {
          break label414;
        }
      }
    }
    if (!bool2) {
      if (((sc)localObject1).q() != null)
      {
        a(true);
        localObject2 = ((sc)localObject1).q();
        this.Q = ((ig)localObject2).D();
        this.T = ((ig)localObject2).a();
        a(localg, (ig)localObject2, paramDouble1, paramDouble2);
        this.N = ((hg)localObject2);
      }
    }
    label414:
    label416:
    if (!bool2) {
      if (localhg != null)
      {
        if (bool2) {
          break label518;
        }
        if (this.N == null)
        {
          this.Q = b;
          this.S = localyc;
          if (!bool2)
          {
            this.T = localxb;
            if ((localhg instanceof jg))
            {
              if (bool2) {
                break label504;
              }
              a(localg, (jg)localhg, paramDouble1, paramDouble2);
              if (!bool1) {
                break label503;
              }
            }
          }
          a(localg, (ig)localhg, paramDouble1, paramDouble2);
          label503:
          label504:
          this.N = localhg;
        }
      }
    }
    if ((bool2) || (this.N != null))
    {
      label518:
      if (!bool2) {
        if (this.V == null)
        {
          A();
          if (bool2) {
            break label592;
          }
          if (!bool1) {
            break label570;
          }
        }
      }
      this.V.a(a(this.N, this.s, paramDouble1, paramDouble2));
      label570:
      this.i.b();
      this.U.a(this.i, this.N);
      label592:
      this.i.a(Cursor.getPredefinedCursor(13));
    }
  }
  
  private void a(g paramg, jg paramjg, double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    e locale = paramjg.gb();
    this.U.a(paramg, locale);
    this.O = this.S.a(paramjg, paramg.w(locale));
    a(paramg, locale);
    this.U.c(paramg, locale);
    this.V = a(paramjg);
    if ((bool) || (this.V == null))
    {
      if ((bool) || (x()))
      {
        y localy = w();
        localy.a(this.i);
        localy.a(new w(paramDouble1, paramDouble2), paramjg);
      }
      paramjg.e((byte)4);
    }
  }
  
  private void a(g paramg, ig paramig, double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    d locald = paramig.lb();
    this.O = this.T.a(paramig, paramg.t(locald), paramg.w(locald.e()), paramg.w(locald.f()));
    a(paramg, locald);
    this.U.a(paramg, locald);
    this.V = a(paramig);
    if ((bool) || (this.V == null))
    {
      if ((bool) || (x()))
      {
        y localy = w();
        localy.a(this.i);
        localy.a(new w(paramDouble1, paramDouble2), paramig);
      }
      paramig.e((byte)4);
    }
  }
  
  protected d_ a(hg paramhg)
  {
    boolean bool = ld.E;
    Object localObject;
    if (!bool) {
      if ((paramhg instanceof ig))
      {
        localObject = ((ig)paramhg).a();
        if ((!bool) && (!(localObject instanceof e_))) {
          break label84;
        }
        return ((e_)localObject).b();
      }
    }
    if ((bool) || ((paramhg instanceof jg)))
    {
      localObject = ((jg)paramhg).a();
      if ((bool) || ((localObject instanceof e_))) {
        return ((e_)localObject).b();
      }
    }
    label84:
    return null;
  }
  
  private void A()
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (this.Q != 4)
      {
        if (bool2) {
          break label38;
        }
        if (this.Q != 4) {
          break label37;
        }
      }
    }
    this.O = null;
    label37:
    label38:
    if ((bool2) || (this.O != null))
    {
      if (!bool2) {
        if ((this.N instanceof jg))
        {
          i = a(this.S);
          if (bool2) {
            break label89;
          }
          if (!bool1) {
            break label88;
          }
        }
      }
      int i = a(this.T);
      label88:
      label89:
      if (!bool2) {}
      switch (i)
      {
      case 0: 
        this.P = null;
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 2: 
        this.P = new b_(null);
        this.P.a(true);
        this.i.a(this.P);
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 1: 
        this.P = new b_(null);
        this.P.a(false);
        this.i.a(this.P);
        if (!bool1) {
          return;
        }
        break;
      }
      throw new IllegalStateException("Unknown Candidates Type");
    }
  }
  
  protected void a(g paramg, e parame)
  {
    if ((ld.E) || (z())) {
      a(paramg, parame, true);
    }
  }
  
  protected void a(g paramg, d paramd)
  {
    if ((ld.E) || (z())) {
      a(paramg, paramd, true);
    }
  }
  
  protected void a(g paramg, d paramd, boolean paramBoolean)
  {
    paramg.a(paramd, paramBoolean);
  }
  
  protected void a(g paramg, e parame, boolean paramBoolean)
  {
    boolean bool = ld.E;
    if (!bool)
    {
      if (paramBoolean)
      {
        if (bool) {
          break label32;
        }
        ke.a(paramg, parame);
      }
    }
    else if (!ld.D) {
      return;
    }
    label32:
    ke.b(paramg, parame);
  }
  
  public void mouseReleasedRight(double paramDouble1, double paramDouble2)
  {
    mouseReleasedLeft(paramDouble1, paramDouble2);
  }
  
  public void mouseReleasedLeft(double paramDouble1, double paramDouble2)
  {
    b(paramDouble1, paramDouble2, false);
  }
  
  private void b(double paramDouble1, double paramDouble2, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (this.N != null)
      {
        if ((bool2) || (this.V == null))
        {
          if (bool2) {
            break label106;
          }
          B();
          if (!bool1) {}
        }
        else
        {
          if (!bool2)
          {
            if (paramBoolean)
            {
              if (bool2) {
                break label101;
              }
              this.V.a();
            }
          }
          else {
            if (!bool1) {
              break label100;
            }
          }
          this.V.c(a(this.N, this.v, paramDouble1, paramDouble2));
          label100:
          label101:
          this.V = null;
        }
        label106:
        g localg = k();
        this.U.a(localg);
        w().g();
        this.i.L();
        this.i.e(0);
        a(paramDouble1 - this.J, paramDouble2 - this.K, paramDouble1, paramDouble2);
        a(false);
        localg.gb();
        if (bool2) {
          break label210;
        }
        if (!bool1) {
          break label185;
        }
      }
    }
    a(false);
    label185:
    this.Q = 0;
    this.N = null;
    this.T = null;
    this.S = null;
    this.O = null;
    label210:
    if (!bool2)
    {
      if (this.U != null) {
        this.U.a();
      }
      this.U = null;
    }
    g();
  }
  
  private void B()
  {
    boolean bool3 = ld.E;
    boolean bool2 = ld.D;
    if (!bool3) {
      if (this.P != null)
      {
        this.i.b(this.P);
        this.P = null;
      }
    }
    o localo = this.N.d();
    boolean bool1 = this.N instanceof jg;
    if (!bool3) {
      if (bool1)
      {
        i = a(this.S);
        if (bool3) {
          break label95;
        }
        if (!bool2) {
          break label93;
        }
      }
    }
    int i = a(this.T);
    label93:
    label95:
    if (!bool3) {}
    Object localObject;
    switch (i)
    {
    case 0: 
    case 2: 
      if (bool1)
      {
        localObject = a(this.S, localo, D().hb(), this.v);
        if (bool3) {
          break label320;
        }
        if (!bool2) {
          break;
        }
      }
      else
      {
        localObject = a(this.T, localo, C().nb(), this.v);
        if (bool3) {
          break label320;
        }
        if (!bool2) {
          break;
        }
      }
      break;
    case 1: 
      fc localfc = a(localo);
      if (!bool3) {
        if (localfc == null)
        {
          if (bool1)
          {
            localObject = a(this.S, localo, D().hb(), this.v);
            if (bool3) {
              break label320;
            }
            if (!bool2) {
              break;
            }
          }
          localObject = a(this.T, localo, C().nb(), this.v);
          if (bool3) {
            break label320;
          }
          if (!bool2) {
            break;
          }
        }
      }
      localObject = localfc.c();
      if (bool3) {
        break label320;
      }
      if (!bool2) {
        break;
      }
    default: 
      throw new IllegalStateException("Unknown Candidates Type");
    }
    if (!bool3)
    {
      this.N.e(this.Q);
      if (bool1)
      {
        label320:
        if (bool3) {
          break label346;
        }
        D().a(this.S, localObject);
        if (!bool2) {
          return;
        }
      }
    }
    label346:
    C().a(this.T, localObject);
  }
  
  private ig C()
  {
    return (ig)this.N;
  }
  
  private jg D()
  {
    return (jg)this.N;
  }
  
  private boolean e(MouseEvent paramMouseEvent)
  {
    boolean bool = ld.E;
    if ((bool) || (x())) {
      if (bool) {}
    }
    return !c(paramMouseEvent);
  }
  
  public void mouseDraggedRight(double paramDouble1, double paramDouble2)
  {
    mouseDraggedLeft(paramDouble1, paramDouble2);
  }
  
  public void mouseDraggedLeft(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    if ((bool) || (this.N != null))
    {
      if (!bool) {
        if (this.V == null)
        {
          b(paramDouble1, paramDouble2);
          if (bool) {
            break label83;
          }
          if (!ld.D) {
            break label69;
          }
        }
      }
      this.V.b(a(this.N, this.t, paramDouble1, paramDouble2));
      label69:
      this.U.a(this.i.a());
      label83:
      this.i.b();
    }
  }
  
  private void b(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    double d1 = paramDouble1 - this.L;
    double d2 = paramDouble2 - this.M;
    this.L = paramDouble1;
    this.M = paramDouble2;
    if (!bool2) {
      if ((this.N instanceof jg))
      {
        i = a(this.S);
        if (bool2) {
          break label83;
        }
        if (!bool1) {
          break label81;
        }
      }
    }
    int i = a(this.T);
    switch (i)
    {
    case 0: 
      if (!bool2) {
        if (this.P != null)
        {
          this.i.b(this.P);
          if (bool2) {
            break label265;
          }
          this.P = null;
          if (!bool1) {
            break;
          }
        }
      }
      break;
    case 2: 
      if (!bool2) {
        if (this.P == null)
        {
          this.P = new b_(null);
          this.i.a(this.P);
          if (bool2) {
            break label265;
          }
          this.P.a(true);
          if (!bool1) {
            break;
          }
        }
      }
      break;
    case 1: 
      if (!bool2) {
        if (this.P == null)
        {
          this.P = new b_(null);
          this.i.a(this.P);
          if (bool2) {
            break label265;
          }
          this.P.a(false);
          if (!bool1) {
            break;
          }
        }
      }
      break;
    default: 
      label81:
      label83:
      throw new IllegalStateException("Unknown Candidates Type");
    }
    label265:
    o localo1 = this.N.d();
    o localo2 = localo1.j(d1, d2);
    if (!bool2)
    {
      if (e(this.t))
      {
        w localw = w().b(localo2.l());
        localo2.b(localw);
        this.L = localw.a();
        this.M = localw.b();
        if (bool2) {
          return;
        }
        if (!bool1) {}
      }
      else
      {
        if (bool2) {
          break label369;
        }
      }
    }
    else if (x()) {
      w().i();
    }
    label369:
    c(localo2);
  }
  
  private fc a(o paramo)
  {
    return a(paramo, this.O);
  }
  
  protected fc a(o paramo, z paramz)
  {
    return a(paramo.l(), paramz);
  }
  
  private fc a(w paramw, z paramz)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (paramz == null) {
      return null;
    }
    double d1 = 1.7976931348623157E+308D;
    Object localObject = null;
    a.c.y localy = paramz.h();
    do
    {
      if (!localy.e()) {
        break;
      }
      if (bool1) {
        break label103;
      }
      fc localfc = (fc)localy.j();
      double d2 = w.a(paramw, localfc.j().l());
      if (!bool2)
      {
        if (d2 < d1)
        {
          d1 = d2;
          localObject = localfc;
        }
        localy.f();
      }
    } while (!bool1);
    label103:
    return localObject;
  }
  
  private void c(o paramo)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    MouseEvent localMouseEvent = this.t;
    Object localObject1;
    Object localObject2;
    Object localObject3;
    if (!bool2)
    {
      if ((this.N instanceof jg))
      {
        localObject1 = D();
        localObject2 = ((jg)localObject1).a();
        localObject3 = ((jg)localObject1).hb();
        if (bool2) {
          break label128;
        }
        this.N.a(a((yc)localObject2, paramo, (ld)localObject3, localMouseEvent));
        if (!bool1) {}
      }
      else
      {
        if (bool2) {
          break label128;
        }
      }
    }
    else if ((this.N instanceof ig))
    {
      localObject1 = C();
      localObject2 = ((ig)localObject1).a();
      localObject3 = ((ig)localObject1).nb();
      Object localObject4 = a((xb)localObject2, paramo, (tb)localObject3, localMouseEvent);
      this.N.a(localObject4);
    }
    label128:
    if (!bool2)
    {
      if (this.P != null) {
        this.P.a(a(paramo));
      }
    }
    else if ((bool2) || (this.P.b()))
    {
      if (!bool2) {
        if ((this.N instanceof jg))
        {
          localObject1 = a(this.S, paramo, D().hb(), localMouseEvent);
          this.P.a(localObject1);
        }
      }
      if ((bool2) || ((bool1) && ((bool2) || ((this.N instanceof ig)))))
      {
        localObject1 = a(this.T, paramo, C().nb(), localMouseEvent);
        this.P.a(localObject1);
      }
    }
  }
  
  protected void a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4) {}
  
  public void b()
    throws UnsupportedOperationException
  {
    if ((ld.E) || (a())) {
      b(this.L, this.M, true);
    }
  }
  
  protected byte a(yc paramyc)
  {
    boolean bool = ld.E;
    if (!bool) {
      if ((paramyc instanceof se)) {
        return 0;
      }
    }
    if (!bool) {
      if ((paramyc instanceof cc)) {
        return 0;
      }
    }
    return 1;
  }
  
  protected byte a(xb paramxb)
  {
    boolean bool = ld.E;
    if (!bool) {
      if ((paramxb instanceof re)) {
        return 0;
      }
    }
    if (!bool) {
      if ((paramxb instanceof bc)) {
        return 0;
      }
    }
    return 1;
  }
  
  protected Object a(yc paramyc, o paramo, ld paramld, MouseEvent paramMouseEvent)
  {
    return paramyc.a(paramo, paramld);
  }
  
  protected Object a(xb paramxb, o paramo, tb paramtb, MouseEvent paramMouseEvent)
  {
    return paramxb.a(paramo, paramtb, paramtb.h(), paramtb.g());
  }
  
  private a_ a(hg paramhg, MouseEvent paramMouseEvent, double paramDouble1, double paramDouble2)
  {
    return new a_(this, paramhg, paramMouseEvent.getModifiersEx(), paramDouble1, paramDouble2, e(paramMouseEvent));
  }
  
  public static class a_
    extends EventObject
  {
    private final vf a;
    private final hg b;
    private final int d;
    private final double e;
    private final double f;
    private final boolean g;
    public static boolean h;
    
    public a_(vf paramvf, hg paramhg, int paramInt, double paramDouble1, double paramDouble2, boolean paramBoolean)
    {
      super();
      this.a = paramvf;
      this.b = paramhg;
      this.d = paramInt;
      this.e = paramDouble1;
      this.f = paramDouble2;
      this.g = paramBoolean;
    }
    
    public vf a()
    {
      return this.a;
    }
    
    public hg b()
    {
      return this.b;
    }
    
    public int c()
    {
      return this.d;
    }
    
    public double d()
    {
      return this.e;
    }
    
    public double e()
    {
      return this.f;
    }
    
    public boolean f()
    {
      return this.g;
    }
  }
  
  public static abstract interface d_
  {
    public abstract void a(vf.a_ parama_);
    
    public abstract void b(vf.a_ parama_);
    
    public abstract void c(vf.a_ parama_);
    
    public abstract void a();
  }
  
  public static abstract interface e_
  {
    public abstract vf.d_ b();
  }
  
  private class b_
    implements qb
  {
    private final BasicStroke a = new BasicStroke(1.0F, 2, 0);
    private final BasicStroke b = new BasicStroke(3.0F, 2, 0);
    private boolean c = true;
    private boolean d = false;
    private Rectangle e;
    private fc f;
    private boolean g;
    private Object h;
    
    private b_()
    {
      a();
    }
    
    public Rectangle getBounds()
    {
      boolean bool = ld.E;
      if (!bool) {
        if (b())
        {
          if (!bool) {
            if ((vf.this.N instanceof jg)) {
              return a(a(vf.this.D()));
            }
          }
          if ((bool) || ((vf.this.N instanceof ig))) {
            return a(a(vf.this.C()));
          }
          return new Rectangle(0, 0, -1, -1);
        }
      }
      return this.e;
    }
    
    private Rectangle a(o paramo)
    {
      t localt = paramo.a();
      return new Rectangle((int)Math.floor(localt.d()), (int)Math.floor(localt.e()), (int)Math.ceil(localt.b()), (int)Math.ceil(localt.c()));
    }
    
    public void paint(Graphics2D paramGraphics2D)
    {
      boolean bool = ld.E;
      if (!bool) {
        if (b())
        {
          if (bool) {
            break label32;
          }
          b(paramGraphics2D);
          if (!ld.D) {
            return;
          }
        }
      }
      label32:
      a(paramGraphics2D);
    }
    
    private void a(Graphics2D paramGraphics2D)
    {
      boolean bool2 = ld.E;
      boolean bool1 = ld.D;
      Stroke localStroke = paramGraphics2D.getStroke();
      Color localColor = paramGraphics2D.getColor();
      paramGraphics2D.setColor(vf.I);
      if (!bool2) {
        if (vf.this.O != null)
        {
          a.c.y localy = vf.this.O.h();
          do
          {
            if (!localy.e()) {
              break;
            }
            fc localfc = (fc)localy.j();
            if (bool1) {
              break label130;
            }
            if (!bool2)
            {
              if (!localfc.equals(this.f)) {
                a(paramGraphics2D, localfc, this.a);
              }
              localy.f();
            }
          } while (!bool1);
        }
      }
      if ((bool2) || (this.f != null)) {
        label130:
        a(paramGraphics2D, this.f, this.b);
      }
      paramGraphics2D.setStroke(localStroke);
      paramGraphics2D.setColor(localColor);
    }
    
    private void a(Graphics2D paramGraphics2D, fc paramfc, Stroke paramStroke)
    {
      boolean bool2 = ld.E;
      boolean bool1 = ld.D;
      if (!bool2)
      {
        if (paramfc == null) {
          return;
        }
        paramGraphics2D.setStroke(paramStroke);
      }
      Line2D.Double localDouble = hb.a().l;
      w[] arrayOfw;
      if (((!bool2) && (((vf.this.N instanceof jg)) && ((!bool2) && (c())))) || ((bool2) || (((vf.this.N instanceof ig)) && (d()))))
      {
        o localo = new o(paramfc.a());
        arrayOfw = o.a(localo);
        if (bool2) {
          break label128;
        }
        if (!bool1) {}
      }
      else
      {
        arrayOfw = o.a(paramfc.j());
      }
      label128:
      int i = 0;
      if (i < arrayOfw.length) {
        if (bool2) {}
      }
      while (bool2)
      {
        int j = i == 0 ? arrayOfw.length - 1 : i - 1;
        localDouble.setLine(arrayOfw[i].a(), arrayOfw[i].b(), arrayOfw[j].a(), arrayOfw[j].b());
        paramGraphics2D.draw(localDouble);
        i++;
        if (!bool1) {
          break;
        }
      }
    }
    
    private void b(Graphics2D paramGraphics2D)
    {
      boolean bool = ld.E;
      o localo;
      if (!bool) {
        if ((vf.this.N instanceof ig))
        {
          localo = a(vf.this.C());
          a(paramGraphics2D, localo);
        }
      }
      if ((bool) || ((ld.D) && ((bool) || ((vf.this.N instanceof jg)))))
      {
        localo = a(vf.this.D());
        a(paramGraphics2D, localo);
      }
    }
    
    private o a(ig paramig)
    {
      tb localtb = paramig.nb();
      return vf.this.T.a(paramig.d().f(), localtb, localtb.h(), localtb.g(), this.h);
    }
    
    private o a(jg paramjg)
    {
      return vf.this.S.a(paramjg.d().f(), paramjg.hb(), this.h);
    }
    
    private void a(Graphics2D paramGraphics2D, o paramo)
    {
      boolean bool2 = ld.E;
      boolean bool1 = ld.D;
      Color localColor = paramGraphics2D.getColor();
      Stroke localStroke = paramGraphics2D.getStroke();
      paramGraphics2D.setColor(vf.I);
      paramGraphics2D.setStroke(new BasicStroke(3.0F, 2, 0));
      Line2D.Double localDouble = hb.a().l;
      w[] arrayOfw;
      if (((!bool2) && (((vf.this.N instanceof jg)) && ((!bool2) && (c())))) || ((bool2) || (((vf.this.N instanceof ig)) && (d()))))
      {
        o localo = new o(paramo.a());
        arrayOfw = o.a(localo);
        if (bool2) {
          break label143;
        }
        if (!bool1) {}
      }
      else
      {
        arrayOfw = o.a(paramo);
      }
      label143:
      int i = 0;
      if (i < arrayOfw.length) {
        if (bool2) {}
      }
      do
      {
        int j = i == 0 ? arrayOfw.length - 1 : i - 1;
        localDouble.setLine(arrayOfw[i].a(), arrayOfw[i].b(), arrayOfw[j].a(), arrayOfw[j].b());
        paramGraphics2D.draw(localDouble);
        i++;
        if (!bool1) {
          break;
        }
        paramGraphics2D.setColor(localColor);
        paramGraphics2D.setStroke(localStroke);
      } while (bool2);
    }
    
    private void a(Object paramObject)
    {
      this.h = paramObject;
    }
    
    private void a(fc paramfc)
    {
      this.f = paramfc;
    }
    
    private void a()
    {
      boolean bool2 = ld.E;
      boolean bool1 = ld.D;
      if (!bool2) {
        if (vf.this.O != null)
        {
          if (bool2) {
            break label50;
          }
          if (!vf.this.O.isEmpty()) {
            break label53;
          }
        }
      }
      this.e = null;
      if (bool1)
      {
        label50:
        label53:
        double d1 = 1.7976931348623157E+308D;
        double d2 = 1.7976931348623157E+308D;
        double d3 = -1.797693134862316E+308D;
        double d4 = -1.797693134862316E+308D;
        a.c.y localy = vf.this.O.h();
        do
        {
          if (!localy.e()) {
            break;
          }
          t localt = ((fc)localy.j()).a();
          d1 = Math.min(d1, localt.d());
          d2 = Math.min(d2, localt.e());
          d3 = Math.max(d3, localt.d() + localt.b());
          d4 = Math.max(d4, localt.e() + localt.c());
          localy.f();
          if ((!bool2) && (bool1)) {
            return;
          }
        } while (!bool1);
        double d5 = this.b.getLineWidth();
        if (!bool2) {
          this.e = new Rectangle((int)Math.floor(d1 - d5), (int)Math.floor(d2 - d5), (int)Math.ceil(d3 - d1 + 2.0D * d5), (int)Math.ceil(d4 - d2 + 2.0D * d5));
        }
      }
    }
    
    public boolean b()
    {
      return this.g;
    }
    
    public void a(boolean paramBoolean)
    {
      this.g = paramBoolean;
    }
    
    public boolean c()
    {
      return this.c;
    }
    
    public void b(boolean paramBoolean)
    {
      this.c = paramBoolean;
    }
    
    public boolean d()
    {
      return this.d;
    }
    
    public void d(boolean paramBoolean)
    {
      this.d = paramBoolean;
    }
    
    b_(vf.2 param2)
    {
      this();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.vf

 * JD-Core Version:    0.7.0.1

 */